<%= error_messages_for 'user' %>

<!--[form:user]-->
<p><label for="user_name">名字</label><br/>
<%= text_field :user, :name %></p>

<p><label for="user_password_text">密码</label><br/>
<%= password_field :user, :password_text %></p>

<p>
  <label for="user_password_text_confimation">确认密码</label><br />
  <%= password_field :user, :password_text_confirmation %>
</p>

<p><label for="user_about">关于</label><br/>
<%= text_area :user, :about  %></p>

<p><label for="user_email">邮箱</label><br/>
<%= text_field :user, :email  %></p>

<p>
  <label for="user_role_id">角色</label><br />
  <%= select :user,
             :role_id,
              Role.find_all.collect {|p| [ p.title, p.id ] }%> 
</p>
<!--[eoform:user]-->

